PROJECTENGRAM

LINK-STATE ROUTING AND OSPF

Tags: #◇Computer Science #◇NSCOM02 #◇Conceptual #◇OSPF #◇Link-State

◇Overview

Link-state routing protocols allow every router to build an independent, complete map of the network topology. Unlike distance-vector's "routing by rumor", link-state routers calculate their own best paths using Dijkstra's Shortest Path First (SPF) algorithm. Open Shortest Path First (OSPF) is a premier link-state protocol known for fast convergence, hierarchical design, and scalability in enterprise networks.

◇Key Definitions

  • Link-State: A routing method where each router possesses a full topology map (Link-State Database).
  • OSPF (Open Shortest Path First): A widely deployed standard link-state routing protocol.
  • LSA (Link-State Advertisement): Packets detailing a router's active interfaces, neighbors, and link costs.
  • LSDB (Link-State Database): The collection of all LSAs, representing the network map.
  • Area 0: The Backbone Area in multi-area OSPF; all other areas must connect to it.

◇Theoretical Framework / Core Concepts

Dijkstra's SPF Algorithm

Routers construct a Shortest Path Tree with themselves as the root. They evaluate the "cost" of each link (in OSPF, usually inversely proportional to bandwidth) to determine the lowest-cost path to every destination.

OSPF Packet Types

  1. Hello (Type 1): Discovers and maintains neighbors.
  2. Database Description (DBD) (Type 2): Summarizes the local LSDB to sync with neighbors.
  3. Link State Request (LSR) (Type 3): Requests specific missing LSAs.
  4. Link State Update (LSU) (Type 4): Sends the requested full LSAs.
  5. Link State Acknowledgment (LSAck) (Type 5): Acknowledges receipt of LSUs.

Multi-Area OSPF Design

To handle large networks, OSPF uses a hierarchical structure.

  • Area 0 (Backbone): The core routing domain.
  • Non-backbone Areas: Isolate link-state flooding. Changes in one area are summarized before passing to another, reducing memory and CPU loads on individual routers.

◇Worked Examples / Protocol Walkthroughs / Calculations

OSPF Path Selection vs RIP

If a router learns of 172.16.0.0/16 via OSPF and RIP:

  • OSPF AD = 110
  • RIP AD = 120
    The router installs the OSPF route in its routing table (represented by an O in Cisco tables) because 110 is lower (more trustworthy) than 120.

◇Summary & Key Takeaways

  • Link-state routers independently compute shortest paths using the SPF algorithm.
  • OSPF uses link bandwidth to calculate path cost.
  • OSPF relies on partial, triggered updates (LSAs) only when a topology change occurs, contrasting with distance-vector's full periodic updates.
  • Multi-area designs shrink LSDB sizes and lower processing overhead.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

Which routing algorithm is utilized by Link-State protocols like OSPF?

Q2

Instead of hop count, what metric does OSPF use to determine the best path?

Q3

What structure does every OSPF router in an area build to independently calculate the shortest path to all networks?

Q4

Which OSPF packet type is responsible for initially establishing neighbor relationships?

Q5

What information is carried inside a Type 4 Link-State Update (LSU) packet?

Q6

In a multi-area OSPF design, what is Area 0 exclusively known as?

Q7

A router learns about the 172.16.0.0/16 network from both RIP and OSPF. Which route will be installed in the routing table, and why?

Q8

What is a primary drawback of using OSPF compared to RIP?

Q9

In an OSPF network, what is the purpose of the Database Description (DBD) packet?

Q10

Which code letter represents an OSPF route in a Cisco routing table?

Link-State Routing and OSPF | PROJECT ENGRAM